package com.interview.javabasic.Search;/*
@李子宁
Happy,happy everyday!
冲鸭！
*/

public class SeqSearc {
    public static void main(String[] args) {

    }

    //线性查找，找到一个条件满足的就返回
    public static int  seqaSearch(int arr[],int val){
        for (int i = 0; i < arr.length; i++) {
            if (arr[i] == val){
                return 1;
            }
        }
        return -1;
    }
}
